// 替换

var string = "2017-06-26";
var today = new Date( string.replace(/-/g, "/") );
console.log( today );

